<?php
include_once("../config.php");
$ming = $_GET['ming'];
$tel = $_GET['tel'];
//$dw = $_GET['dw'];
$uid = $_GET['uid'];
$uid = str_ireplace($search, '', $uid);
$ming = str_ireplace($search, '', $ming);
$tel = str_ireplace($search, '', $tel);
$dw=intval($_GET['dw']);


$sql = "update user set ming='$ming',tel='$tel',danwei=$dw where openid='$uid'";
mysqli_query($con,$sql);
if(mysqli_affected_rows($con)){
	$result = '{"status":"1","msg":"ok"}';
}else{
	$result = '{"status":"0","msg":"失败，请重试"}';
}

echo $result;






